package com.haoma.service;

import com.haoma.dto.ArticleDto;
import com.haoma.elasticsearch.ArticleEs;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * Description:
 */
public interface ArticleService {

    Map<String, List<String>> getLabelAndCategory();

    String fileUpload(MultipartFile multipartFile);

    void saveArticle(ArticleEs articleEs);

    List<ArticleEs> getArticleList(ArticleDto articleDto);

    void updateArticle(Long id,  ArticleEs articleEs);

    void updateStatus(Long id, Integer status);

    void delArticle(Long id);

    ArticleEs getArticle(Long id);

    String uploadImage(MultipartFile multipartFile);
}
